package com.lsyw.intergrate.serviceImpl;

import com.lsyw.intergrate.entity.MSamplingTaskDetection;
import com.lsyw.intergrate.mapper.MSamplingTaskDetectionMapper;
import com.lsyw.intergrate.service.MSamplingTaskDetectionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 手动采样任务监测表 服务实现类
 * </p>
 *
 * @author 刘磊
 * @since 2024-01-19
 */
@Service
public class MSamplingTaskDetectionServiceImpl extends ServiceImpl<MSamplingTaskDetectionMapper, MSamplingTaskDetection> implements MSamplingTaskDetectionService {

    @Override
    public MSamplingTaskDetection getByTaskId(String id) {
        return baseMapper.getByTaskId(id);
    }

    @Override
    public List<Map<String, Object>> getValueByTypeAndMassifId(int type, String massifId) {
        return baseMapper.getValueByTypeAndMassifId(type,massifId);
    }
}
